body{
    overflow-x: hidden;
}

.game-container .hide {
    transition: height .3s ease-in-out .2s, opacity .3s 0s !important;
    height: 0px !important;
    opacity: 0 !important;

}

.game-space {
    height: 50px;
}

#game-result {
    transition: height .3s ease-in-out, opacity .3s .2s;
    text-align: center;
    margin: 10px 50px;
    height: 200px;
    opacity: 1;
    z-index: -10;
}

#game-go {
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
}

#game-reset {
    font-size: 1.4rem;
    text-align: center;
}

.game-btns {
    /* position: absolute;
    left: 50%;
    transform: translate(-50%, 0) */
    text-align: center;
}

.game-name-item{
    opacity: 1;
    overflow-y: hidden;
    height: 33px;
    animation: item-in .3s forwards;
}

.s-item {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    border-radius: 20px;
    box-shadow: 0 0 7px 0px #cfcfcf;
    padding: 6px 36px;
    margin-top: 24px;
    word-wrap: break-word;
    background: white;
    position: relative;
}

.s-item h2 {
    font-weight: normal;
}

.s-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 7px 0px #b3b3b3;
}

.s-item.s-item-active {
    transition: all 0.15s ease-in-out;
    color: white;
    background-image: linear-gradient(#1c77ff, #54acff);
}

.s-tags {
    line-height: 40px;
}

.s-tag-item {
    transition: all 0.3s ease-in-out;
    list-style: none;
    display: inline-block;
    border-radius: 12px;
    /* box-shadow: 0 0 7px 0px #cfcfcf; */
    background-color: rgb(0, 153, 255);
    padding: 6px 12px;
    margin-left: 6px;
    color: white;
    line-height: 14px;
}

.s-item.s-item-active .s-tag-item {
    display: inline-block;
    background-color: white;
    color: rgb(0, 153, 255);
}

.s-item .s-des {
    transition: opacity .3s;
    display: block;
    opacity: .6;
    padding-left: 12px;
    margin-top: -12px;
}

.s-item .s-cpbtn{
    transition: background-color .3s, color .3s, opacity .3s;
    position: absolute;
    right: 0;
    top: 0;
    display: block;
    border-top-right-radius: 20px;
    background-color: #ffffff00;
    color: black;
    padding: 12px;
}

.s-item .s-cpbtn:hover {
    background-color:#5fb7ff;
    color:  #ffffff;
}

.s-item .s-des:hover {
    opacity: 1;
}

.s-tag-item:hover {
    background-color: #4dafff;
    transform: scale(1.05);
    box-shadow: 0 0 7px 0px #d3d3d3;
}

.include-tags,
.exclude-tags{
    transition: height .3s ease-in-out,opacity .3s;
    opacity: 1;
    overflow-y: hidden;
}

.include-tags.hide,
.exclude-tags.hide{
    opacity: 0!important;
    height: 0px!important;
}

.helpbtn{
    transition: right .3s ease-in-out;
    cursor: pointer;
    position: fixed;
    right: 5vw;
    bottom: 5vh;
    background-color: #1c77ff;
    color: white;
    padding: 8px 12px;
    border-radius: 24px;
    min-width: 24px;
    text-align: center;
}

.helpbtn:hover {
    background-color: #0066ff;
}

.top {
    transition: right .3s ease-in-out;
    cursor: pointer;
    position: fixed;
    right: 5vw;
    bottom: 12vh;
    background-color: #1c77ff;
    color: white;
    padding: 8px 12px;
    border-radius: 24px;
    min-width: 24px;
    text-align: center;
}

.top.hide{
    right: -100px;
}

.top:hover {
    background-color: #0066ff;
}

.random-btn{
    transition: right .3s ease-in-out;
    cursor: pointer;
    position: fixed;
    right: -100px;
    background-color: #1c77ff;
    color: white;
    padding: 8px 12px;
    border-radius: 24px;
    min-width: 24px;
    text-align: center;
}

.random-btn.show {
    cursor: pointer;
    position: fixed;
    right: 5vw;
    /* bottom: 6vh; */
    background-color: #1c77ff;
    color: white;
    padding: 8px 12px;
    border-radius: 24px;
}

.random-btn:hover {
    background-color: #0066ff;
}

.container-btns{
    float: right;
    transform: translate(-20px, -160%);
    width:unset !important;
}


@keyframes item-in{
    from{
        height:0px;
        opacity:0;
        padding-top: 0px;
        padding-bottom: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}
@keyframes item-out{
    to{
        height:0px;
        opacity:0;
        padding-top: 0px;
        padding-bottom: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }
}


@media (max-width: 680px) {
    header{
        padding: 0;
        text-align: center;
    }

    .container {
        width: 100vw;
        margin: 12px auto;
        padding: 36px 0px;
    }

    #content-container {
        margin-top: 48px;
    }

    ul.multi-column-menu {
        display: block;
        width: 100vw;
        padding:0;
        text-align: center;
    }

    #game-result ul.multi-column-menu{
        width: unset;
        height: 280px;
    }

    #game-result{
        height: 300px;
    }
    
    .game-space{
        height:0;
    }

    .container-btns{
        width: 100%;
        text-align: center;
    }

    .s-tags{
        padding: 0;
    }

    .s-item {
        border-radius: 0px;
        box-shadow: 0 0 7px 0px #cfcfcf;
        padding: 6px 10px;
    }

    .s-item h2 {
        border: none;
    }

    .s-item:hover {
        transform: none;
    }

    .s-item .s-cpbtn{
        border-top-right-radius: 0px;
    }
}